package com.home.model.dto;

import java.io.Serializable;
import java.util.List;

import com.home.model.entity.City;

/**
 * 
 * @author Kevin Phan
 *
 */
public class CityDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private long id;
	private String name;
	private String code;
	private String description;
	private List<DistrictDto> districts;

	public CityDto(City city) {
		this.id = city.getId();
		this.code = city.getCode();
		this.name = city.getName();
		this.description = city.getDescription();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<DistrictDto> getDistricts() {
		return districts;
	}

	public void setDistricts(List<DistrictDto> districts) {
		this.districts = districts;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

}
